function t() {
    o > 0 && (o = 0, wx.hideLoading(), r());
}

require("./@babel/runtime/helpers/Arrayincludes.js"), Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.$isObject = exports.$getSysInfo = void 0, exports.$isDevTools = function() {
    return "devtools" === e().platform;
}, exports.$isIOS = function() {
    var t = e(), o = t.platform, n = t.system;
    return "devtools" === o && n.includes("iOS") || "ios" === o;
}, exports.$hideLoading = t, exports.$showLoading = function() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
    o > 0 ? t() : r(), o = 1, wx.showLoading(e), n = setTimeout(t, 5e3);
}, exports.$toast = function(e) {
    o > 0 && t(), wx.showToast({
        title: e,
        icon: "none",
        duration: 3e3
    });
}, exports.$getStorageSync = function(t) {
    var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "";
    try {
        return wx.getStorageSync(t) || e;
    } catch (t) {
        return e;
    }
}, exports.$setStorageSync = function(t, e) {
    try {
        return wx.setStorageSync(t, e);
    } catch (t) {}
}, exports.$navigateBack = function() {
    var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "index";
    getCurrentPages().length > 1 ? wx.navigateBack() : wx.reLaunch({
        url: "/page/" + t + "/" + t
    });
}, exports.$vibrate = function() {
    getApp().globalData.settings.vibrateChecked && wx.vibrateLong();
};

var e = exports.$getSysInfo = function() {
    var t = getApp();
    return t && t.sysInfo || wx.getSystemInfoSync();
}, o = 0, n = null, r = function() {
    n && (clearTimeout(n), n = null);
}, i = function(t, e) {
    return Object.prototype.toString.call(t) === "[object " + e + "]";
};

exports.$isObject = function(t) {
    return i(t, "Object") || i(t, "Array");
};